<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>找老婆</button>
    <img src="./hollow.jpg" alt="" />

    <script>
      var btn = document.querySelector('button')
      btn.onclick = function () {
        var img = document.querySelector('img')
        img.src = './hammit.png'
      }
    </script>
  </body>
</html>
